<template>
	<router-view v-slot="{ Component, route }">
		<component :is="Component" :key="route.fullPath" />
	</router-view>
</template>

<script setup>
	// App.vue 是应用的根组件
</script>

<style lang="scss">
	.app-container {
		width: 100%;
		min-height: 100vh;
	}

	// 页面过渡动画
	.fade-enter-active,
	.fade-leave-active {
		transition: opacity 0.3s ease;
	}

	.fade-enter-from,
	.fade-leave-to {
		opacity: 0;
	}
</style>
